package com.lizemin.client;

import com.lizemin.annotation.FeignClient;
import com.lizemin.common.ApiResponse;
import com.lizemin.req.BuyProductReq;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lzm
 * @date 2025/4/19 21:27
 * @description
 */
@FeignClient(name = "PRODUCT-SERVICE")
public interface ProductClient {

    @PostMapping("/buyProduct")
    ApiResponse buyProduct(@RequestBody BuyProductReq req);

    @PostMapping("/getOrders")
    ApiResponse getOrders();

}
